﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace Emerson.Storage.Core
{
    public interface IRepository<TEntity> where TEntity : class
    {
        void Add(TEntity entity);
        void Delete(TEntity entity);
        void Attach(TEntity entity);
        List<TEntity> GetAll();
        IEnumerable<TEntity> Find(Func<TEntity, bool> where);
    }
}